gtk/gtkentry.c: Fix build on pre-C99
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 15 Feb 2016 09:22:00 +0000 (17:22 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 15 Feb 2016 09:22:00 +0000 (17:22 +0800)
This file now uses nearbyint(), so include fallback-c89.c so that
compilers that don't provide the function will not get upset.

gtk/gtkentry.c

index dad0869f440e95cca373cb111b8d4c8c2268ce42..556db72041888a3dd926c15e02f441f4f3602c2a 100644 (file)
@@ -28,7 +28,6 @@
 
 #include "config.h"
 
-#include <math.h>
 #include <string.h>
 
 #include "gtkbindings.h"
@@ -74,6 +73,8 @@
 
 #include "a11y/gtkentryaccessible.h"
 
+#include "fallback-c89.c"
+
 /**
  * SECTION:gtkentry
  * @Short_description: A single line text entry field